<?php  
include('../../config/config.php');

if($_POST["button"] == "Tambah")  

{
	$id = $_POST['id'];
	$dep = $_POST['namadep'];
	
	
	
		$sql = "INSERT INTO departemen(ID_DEPARTEMEN, NAMA_DEPARTEMEN)
		VALUES ('$id','$dep')";
		$result = mysql_query($sql) or die(mysql_error());;
		mysql_close();
		header('Location: /mpd/admin/view/tambahdepartemen.php');
}
?>
